#include "CBaseTitleBar.h"

CBaseTitleBar::CBaseTitleBar(QWidget *parent) : QWidget(parent) {
    setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
    m_titleColor = Qt::black;
    m_barVisible = true;
}

CBaseTitleBar::~CBaseTitleBar() {
}

QColor CBaseTitleBar::titleColor() const {
    return m_titleColor;
}

void CBaseTitleBar::setTitleColor(const QColor &titleColor) {
    m_titleColor = titleColor;
}

bool CBaseTitleBar::isMouseFree() const {
    return true;
}

bool CBaseTitleBar::barVisible() const {
    return m_barVisible;
}

void CBaseTitleBar::setBarVisible(bool visible) {
    m_barVisible = visible;
    updateBarVisible();
}

void CBaseTitleBar::updateBarVisible() {
}
